﻿using StructureMap.Configuration.DSL;
using ZSoft.Telegram.DataAccess;
using ZSoft.Telegram.DataAccess.Abstractions;

namespace ZSoft.Telegram.UI.Web.Infrastructure.IOC.Registries
{
    public class SqlResposiotryRegistry : Registry
    {
        public SqlResposiotryRegistry()
        {
            this.For(typeof(IRepository<>))
                .Use(typeof(SqlRepository<>))
                    .Ctor<ApplicationDbContext>().Is(new ApplicationDbContext());
        }
    }
}
